Ext.define('passport.view.permissionType.PermissionTypeEditView', {
    extend: 'Ext.window.Window',
    alias : 'widget.permissionTypeEditView',
    requires: ['Ext.form.Panel'],
    title : 'Edit Domain Object',
    layout: 'fit',
    autoShow: true,
    height: 300,
    width: 300,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '5 5 0 5',
                border: false,
                style: 'background-color: #fff;',
                items: [
                    {
                        xtype: 'textfield',
                        name : 'Id',
                        fieldLabel: 'Id',
                        hidden: true
                    },
                    {
                        xtype: 'textfield',
                        name : 'Code',
                        fieldLabel: 'Code'
                    },
                    {
                        xtype: 'textfield',
                        name : 'ShortName',
                        fieldLabel: 'Short Name'
                    },
                    {
                        xtype: 'textfield',
                        name : 'Comment',
                        fieldLabel: 'Comment'
                    },
                    {
                    	xtype: 'textfield',
                    	name: 'DeletedFlag',
                    	fieldLabel: 'Deleted Flag',
                    	hidden: true
                    }
                ]
            }
        ];
        this.buttons = [
            {
                text: 'Save',
                action: 'save'
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];
        this.callParent(arguments);
    }
});
